import os
import copy

BIN_DIR=os.environ['BIN_DIR'];
LIB_DIR=os.environ['LIB_DIR'];

sources= ["bjson.c", "cutils.c",	"libbf.c", "libregexp.c", "libunicode.c", "quickjs.c", "quickjs-libc.c"]

env=DefaultEnvironment().Clone()

env['CCFLAGS'] = env['CCFLAGS'] + ' -DCONFIG_VERSION="\\\"2019-09-01\\\"" '

env.Library(os.path.join(LIB_DIR, 'quickjs'), sources)
